<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template/LayoutPadrao.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml">

    <ui:define name="centro">
        <h:form id="form1">
            <h:panelGrid columns="4">
                <h:outputLabel/><h:outputLabel/>

                <p:outputLabel value="Num. Inscrição" for="num_inscricao"/>
                <p:inputText value="" disabled="true" id="num_inscricao"/>

                <p:outputLabel value="Nome" for="nome"/>
                <p:inputText value="#{novoParticipanteAlunoBean.participante.nome}" id="nome"/>

                <p:outputLabel value="CPF" for="cpf"/>
                <p:inputText value="#{novoParticipanteAlunoBean.participante.cpf}" id="cpf"/>

                <p:outputLabel value="Matrícula" for="matricula"/>
                <p:inputText value="#{novoParticipanteAlunoBean.aluno.matricula}" id="matricula"/>  

                <h:outputLabel/><h:outputLabel/>

                <p:outputLabel value="Senha de Acesso" for="senha"/>
                <p:inputText value="#{novoParticipanteAlunoBean.participante.senha}" id="senha"
                             type="password"/>  
                <p:outputLabel value="Confirmar Senha" for="senha2"/>
                <p:inputText value="#{novoParticipanteAlunoBean.senhaConfirma}" id="senha2"
                             type="password"/> 
                <f:facet name="footer">
                    <p:commandButton value="Enviar" action="#{novoParticipanteAlunoBean.salvar}"
                                     ajax="false"/>
                </f:facet>                                
            </h:panelGrid>
            <p:growl/>
            <p:messages closable="true" />
        </h:form>
    </ui:define>

</ui:composition>
